package com.chixing.day08.OrderSystem;

public class PersonalOrder implements OrderInterf {

    private String customerName;
    private String productId;
    private int orderNum = 0;

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Override
    public int getOrderNum() {
        return orderNum;
    }

    @Override
    public void setOrderNum(int num) {
        this.orderNum = num;
    }

    @Override
    public String toString() {
        return "个人订单:\n" +
                " " + " " + "订购人: " + customerName + "\n" +
                " " + " " + "订购商品: " + productId + "\n" +
                " " + " " + "订购数量: " + orderNum;
    }


}

